{layout name="layout" /}
<div id="actionbar" class="fn-clear">
    <div class="fn-left">
        <a href="{:url('bank/index',['types'=>0])}" class="button{if $types == 0} button-green{/if}">最近交易</a>
        <a href="{:url('bank/index',['types'=>1])}" class="button{if $types == 1} button-green{/if}">收益排行</a>
        <a href="{:url('bank/index',['types'=>2])}" class="button{if $types == 2} button-green{/if}">余额排行</a>
        <a href="{:url('bank/index',['types'=>3])}" class="button{if $types == 3} button-green{/if}">锁定排行</a>
        <a href="{:url('bank/index',['types'=>4])}" class="button{if $types == 4} button-green{/if}">积分排行</a>
    </div>
    <div class="fn-right">
        <form id="form" action="{:url('bank/index')}" method="get">
            <input placeholder="请输入用户完整手机号" class="input w200" type="text" name="keyword" value="{$keyword}" />
            <input type="submit" value="搜索" class="button button-blue" />
        </form>
    </div>
</div>
<table class="pure-table">
    <thead>
        <tr>
            <th class="w80 fn-tac">#</th>
            <th class="w360 fn-tac">操作</th>
            <th>昵称</th>
            <th class="w120 fn-tar">累计收益</th>
            <th class="w120 fn-tar">帐号余额</th>
            <th class="w120 fn-tar">应付金额</th>
            <th class="w120 fn-tar">购物积分</th>
            <th class="w120 fn-tar">锁定金额</th>
            <th class="w160">更新日期</th>
        </tr>
    </thead>
    <tbody>
        {foreach $list as $vo}
        <tr>
            <td class="fn-tac">{$vo.id}</td>
            <td class="fn-tac"> 
                <a class="button button-green win" href="javascript:;" url="{:url('user/pyramid',['id'=>$vo.user_id])}" title="伞下"><i class="iconfont icon-iconset0280"></i>伞下</a>
                <a class="button button-red win"  href="javascript:;" url="{:url('system/passport.user/level',['id'=>$vo.user_id])}" title="溯源"><i class="iconfont icon-lianjie"></i>溯源</a>
                <a class="button win" href="javascript:;" id="{$vo.user_id}" url="{:url('fastshop/bank/logs')}" title="账单">
                    <i class="iconfont icon-wodedingdan2"></i>账单
                </a>
                <a class="button win" href="javascript:;" id="{$vo.user_id}" url="{:url('fastshop/bank/recharge')}" title="充值">
                    <i class="iconfont icon-chuzhijine"></i>充/提
                </a>
            </td>
            <td><a class="win" href="javascript:;" url="{:url('system/passport.user/review',['uid' => $vo.user_id])}" title="预览">{$vo.nickname}</a></td>
            <td class="fn-tar">{$vo.income_monney/100|money}</td>
            <td class="fn-tar">{$vo.money/100|money}</td>
            <td class="fn-tar">{$vo.due_money/100|money}</td>
            <td class="fn-tar">{$vo.shop_money/100|money}</td>
            <td class="fn-tar">{$vo.lack_money/100|money}</td>
            <td>{$vo->update_time|date='Y-m-d H:i'}</td>
        </tr>
        {/foreach}
    </tbody>
</table>
<div class="page">{$list|raw}</div>
<script type="text/javascript">
    Do('base', 'layer', function () {
        $('.win').click(function () {
            var url = $(this).attr('url');
            $(this).popup(url);
        })
    })
</script>